<div class="col-sm-3 col-md-2 sidebar">
  <ul class="nav nav-sidebar">
    <li class="active"><a href="/console/manage/query">查询数据<span class="sr-only">(current)</span></a></li>
    <li><a href="/console/manage/cmd">实时监控</a></li>
      <li><a href="/console/manage/history_state">历史状态</a></li>

    <li><a href="/console/manage/analysis">数据分析</a></li>
      <li><a href="/console/manage/diagnose">故障诊断</a></li>
  </ul>
</div>
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
    <h1 class="page-header">实时数据
        <span class="label label-primary">通信终端ID:{{ communicator_id }}</span>
        <span class="label label-primary">控制终端ID:{{ terminal_id }}</span>
    </h1>

    <table class="table">
        <thead>
            <tr>
                <th>记录时间</th>
                <th>系统状态</th>
                <th>并网状态</th>
                <th>自动模式</th>
                <th>累积发电</th>
                <th>网电电压A</th>
                <th>网电电压B</th>
                <th>网电频率</th>
                <th>机电电压A</th>
                <th>机电电压B</th>
                <th>机电频率</th>
                <th>机电电流A</th>
                <th>机电电流B</th>
                <th>机电电流C</th>
                <th>有功功率</th>
                <th>无功功率</th>
                <th>功率因数</th>
                <th>励磁电压</th>
                <th>励磁电流</th>
                <th>水位高度</th>
                <th>开增动作</th>
                <th>开减动作</th>
                <th>电池电压</th>
                <th>温度</th>
            </tr>
          </thead>
        <tbody>
            {% for data in datas %}
                <tr>
                    <td>{{ data.record_time }}</td>
                    <td>{{ data.sys_state }}</td>
                    <td>{{ data.en_state }}</td>
                    <td>{{ data.mode }}</td>
                    <td>{{ data.power_produce }}</td>
                    <td>{{ data.net_voltage_a }}</td>
                    <td>{{ data.net_voltage_b }}</td>
                    <td>{{ data.net_frequence }}</td>
                    <td>{{ data.mechine_voltage_a }}</td>
                    <td>{{ data.mechine_voltage_b }}</td>
                    <td>{{ data.mechine_frequence }}</td>
                    <td>{{ data.mechine_current_a }}</td>
                    <td>{{ data.mechine_current_b }}</td>
                    <td>{{ data.mechine_current_c }}</td>
                    <td>{{ data.useful_power }}</td>
                    <td>{{ data.useless_power }}</td>
                    <td>{{ data.power_factor }}</td>
                    <td>{{ data.excite_voltage }}</td>
                    <td>{{ data.excite_current }}</td>
                    <td>{{ data.water_level }}</td>
                    <td>{{ data.increase_state }}</td>
                    <td>{{ data.decrease_state }}</td>
                    <td>{{ data.battery }}</td>
                    <td>{{ data.temperature }}</td>
                </tr>
            {% endfor %}
        </tbody>
    </table>
</div>